Skip to content

Disable Contour Calculations#445

Open
BryonLewis wants to merge 3 commits intomainfrom
disable-contour-calc
Open

Disable Contour Calculations#445
BryonLewis wants to merge 3 commits intomainfrom
disable-contour-calc

Conversation

@BryonLewis
Copy link
Collaborator

@BryonLewis BryonLewis commented Mar 21, 2026

The contour UI is disabled, and the storage of the contours in the pulse metadata is quite large and unnecessary. This adds a Django setting variable to enable contour calculation. By default, it is disabled and won't perform the contour calculation

DJANGO_BATAI_SAVE_SPECTROGRAM_CONTOURS - defaults to FALSE and when set to TRUE will perform contour calculations when a waveform is processed into the spectrograms.

bbox is a required field for creating pulse metadata so I added some calculation from the basic segment data as well as a fallback from the curve for when the DJANGO_BATAI_SAVE_SPECTROGRAM_CONTOURS=False

@BryonLewis BryonLewis marked this pull request as ready for review March 25, 2026 13:49
@BryonLewis BryonLewis requested a review from naglepuff March 25, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant